package com.sanery.service.impl;

import com.sanery.dao.MyBatisUtil;
import com.sanery.dao.UserDao;
import com.sanery.entity.User;
import com.sanery.service.UserService;

public class UserServiceImpl implements UserService {

	@Override
	public User getUser(String username, String password) {
		// 由切面来完成事务处理提交
		UserDao dao = MyBatisUtil.getSession().getMapper(UserDao.class);
		User user = dao.getUser(username, password);
		return user;
	}

}
